﻿namespace MicroCloud.Utils
{
    /// <summary>
    /// 数据模型接口
    /// </summary>
    /// <typeparam name="TKey">实体主键类型</typeparam>
    public interface IEntity<TKey> : IEntityBase
    {
        /// <summary>
        /// 获取或设置 编号（主键，唯一标识）
        /// </summary>
        TKey Id { get; set; }

    }

    /// <summary>
    /// 数据模型基接口
    /// </summary>
    public interface IEntityBase : IEntityHash
    { }

}
